<html>
<body>
Reports two consecutive comparisons that can be converted to a range check.
<p>Checking against a range makes code simpler by removing test subject duplication.</p>
<p><b>Example:</b></p>
<pre><code>
  fun checkMonth(month: Int): Boolean {
      return month >= 1 && month &lt;= 12
  }
</code></pre>
<p>The quick-fix replaces the comparison-based check with a range one:</p>
<pre><code>
  fun checkMonth(month: Int): Boolean {
      return month in 1..12
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>